<template>
  <div class="common-layout">
    <div class="login-logo-box">
      <component :is="logoImg" v-if="!$store.state.setting.baseAppNameShow" />
      <span v-else class="text-color-fff ml-24 fs-16">{{ $store.getters['setting/appBaseName'] }}</span>
    </div>
    <div class="content"><slot /></div>
    <!-- <page-footer :link-list="footerLinks" :copyright="copyright" /> -->
  </div>
</template>

<script>
// import PageFooter from '@/layouts/footer/PageFooter';
import { mapState } from 'vuex';
import logoImg from '@/assets/img/Logo.svg';
export default {
  name: 'CommonLayout',
  data() {
    return {
      logoImg
    };
  },
  // components: { PageFooter },
  computed: {
    ...mapState('setting', ['footerLinks', 'copyright'])
  }
};
</script>

<style lang="less">

.common-layout{
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: auto;
  background-color: @layout-body-background;
  background-image: url('../assets/img/Login_background.jpg');
  background-repeat: no-repeat;
  background-position: center;

  background-size: cover;
  .ant-btn-primary{
    height: 40px!important;
    line-height: 40px!important;
    margin-top: 0!important;
  }
  .login-logo-text{
    color: #21252E;
    font-size: 20px;
    width: 320px;
    height: 24px;
    font-weight: bold;
    line-height: 24px;
        margin-left: 8px;
  }
  .login-logo-box{
    height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
      align-items: center;
    svg{
      height: 22px;
      width: 345px;
      margin-left: 120px;
    }
    .ant-form-item-label{
      line-height: 1;
      margin-bottom: 12px;
    }
  }
  .content{
    width: 466px;
    height: 445px;
    background-color: #FFFFFF;
    position: absolute;
    right: 8.4%;
    margin-top: -233px;
    top: 50%;
    label{
      font-size: 14px;
      font-weight: 600;
      color:#505363
    }
  }
}
</style>

